package com.study.web.ajax;

import com.study.utils.SysUtils;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author study
 * @version 1.0
 * @date 2020/9/25 21:57
 */
@Slf4j
@RestController
@RequestMapping("ajax")
@Api(tags = "Jsoup测试")
public class AjaxController {
    @GetMapping
    public String get() {
        return SysUtils.getDate4();
    }
    @PostMapping
    public String post() {
        return SysUtils.getDate4();
    }
}
